package com.lhn.service.impl;

import com.lhn.entity.Type;
import com.lhn.mapper.TypeMapper;
import com.lhn.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lhn
 * @date 2024-10-10 22:03
 */

@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    private TypeMapper typeMapper;
    @Override
    public Type findById(long id) {
        return typeMapper.findById(id);
    }

    @Override
    public List<Type> findAllType() {
        return typeMapper.findAllType();
    }
}
